/*************************************************************************************************
 * Class to represent an object that lays on the ground.
 * A non-abstract object that wants to be placed on the ground, should inherit this class.
 *************************************************************************************************/

package ground;

public abstract class GroundObject {
	
	//members
	private int x; // object's x axis coordinate on the ground
	private int y; // object's y axis coordinate on the ground
	
	/**
	 * Creates a new object on the ground at given position
	 * @param xCord initial robot position (x-axis)
	 * @param yCord initial robot position (y-axis) 
	 */
	public GroundObject(int xCord, int yCord) {
		// set members as given values
		x = xCord;
		y = yCord;		
	}

	/**
	 * Ground object's x axis position
	 * @return x axis position attribute
	 */
	public int getXcord() { return x;}
	
	/**
	 * Ground object's y axis position
	 * @return y axis position attribute
	 */
	public int getYcord() { return y;}
	
	/**
	 * Sets object's x axis position
	 * @param newXcord- new x axis position for the object
	 */
	public void setXcord(int newXcord) { x = newXcord;}
	
	/**
	 * Sets object's y axis position
	 * @param newXcord- new y axis position for the object
	 */
	public void setYcord(int newYcord) { y = newYcord;}

}